#pragma once
#include <QDialog>
class QLineEdit;
class QLabel;

class LoginDialog : public QDialog {
    Q_OBJECT
public:
    explicit LoginDialog(QWidget* parent = nullptr);
    QString username() const;

signals:
    void loginSuccess();

private slots:
    void onLogin();
    void onRegister();

private:
    QLineEdit *leUser, *lePass;
    QLabel *lblMsg;
};
